package org.example.myleet.p1583;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.unhappyFriends(4, Parser.parse("[[1, 2, 3], [3, 2, 0], [3, 1, 0], [1, 2, 0]]"), Parser.parse("[[0, 1], [2, 3]]")));
        Assert.isTrue(0 == solution.unhappyFriends(2, Parser.parse("[[1], [0]]"), Parser.parse("[[0, 1]]")));
        Assert.isTrue(4 == solution.unhappyFriends(4, Parser.parse("[[1, 3, 2], [2, 3, 0], [1, 3, 0], [0, 2, 1]]"), Parser.parse("[[1, 3], [0, 2]]")));
    }
}
